#include <stdio.h>

#define ChatRoomLib
#include "ChatRoom.c"

int	main(int argc, char **argv) {

    
    // strcat(people.name, argv[3]);
    // connectChatRoom(&people, argv[1], atoi(argv[2]));

    People people;
    strcat(people.name, "zinface");

    ChatRoom room = {0};
    if (connectChatRoomWithHost(&room, &people, "localhost", 8080)) {
        workPeople(&people, defaultJoinChatRoom, defaultLeveChatRoom);
    }

    //----------------------------------------------------------------

    // ChatRoom room;
    // People people;
    // strcat(people.name, "zinface");

    // if (createPeopleConnectChatRoomWithHost(&people, &room, "localhost", 8080)) {
    //     workPeople(&people);
    // }
    
    return 0;
}